package com.woyou.ui.activity;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import com.citaq.ideliver.R;
import com.woyou.utils.Dialog;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

/**
 * 设置SetUpFragment
 * @author tanglc
 */
@EActivity(R.layout.fm_setup)
public class SetUpActivity extends BaseActivity {
	
	Dialog dialog = new Dialog();
	
	@ViewById	//清除图片缓存、非Wifi下图片质量、检查更新
	LinearLayout fm_set_removepicbtn, fm_set_picqualitybtn, fm_set_checkupdatebtn, coveronclick;
	@ViewById
	RelativeLayout myback;
	
	@Click({R.id.fm_set_removepicbtn, R.id.fm_set_picqualitybtn, R.id.fm_set_checkupdatebtn, R.id.myback, 
				R.id.coveronclick})
	void loginOnClick(View view)
	{
		switch (view.getId()) {
		case R.id.fm_set_removepicbtn:
			//清除图片缓存
			dialog.Toast(mActivity, "是否清除缓存中的图片数据？");
			break;
		case R.id.fm_set_picqualitybtn:
			//非Wifi下图片质量
			dialog.Toast(mActivity, "请设置非Wifi下的图片质量！");
			break;
		case R.id.fm_set_checkupdatebtn:
			//检查更新
			dialog.Toast(mActivity, "是否更新最新版本！");
			break;
		case R.id.myback:
			//退出设置界面
			myClazz = SetUpActivity_.class;
			finish();
			break;
		case R.id.coveronclick:
			//退出设置界面
			break;
		default:
			break;
		}
	}
	Class<SetUpActivity_> myClazz;
	// @Produce
	// public EventCloseFM closeSetUpFM() {
	// return new EventCloseFM(myClazz, null);
	// }

	/* (non-Javadoc)
	 * @see com.woyou.ui.api.IBackEventStrategy#backOperate()
	 */
	@Override
	public boolean backOperate() {
		// TODO Auto-generated method stub
		return false;
	}

}
